From 17b33df91e84a69a588d7a1116774ae56e0e7691 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sat, 18 Oct 2008 22:22:51 +0000 Subject: [PATCH] mmo: Fix MSVC problems. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3567 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/mmo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsbabel/mmo.c b/gpsbabel/mmo.c index 5bbcfaded..9159291a3 100644 --- a/gpsbabel/mmo.c +++ b/gpsbabel/mmo.c @@ -157,11 +157,11 @@ mmo_readstr(void) static int -mmo_fillbuf2(void *buf, const gbsize_t bufsz, const int count, const int need_all) +mmo_fillbuf2(void *buf, const gbsize_t bufsz, const gbsize_t count, const int need_all) { - int res; + gbsize_t res; - if (count > bufsz) fatal(MYNAME ": Internal error (bufsz too small)!\n"); + if (count > (int)bufsz) fatal(MYNAME ": Internal error (bufsz too small)!\n"); memset(buf, 0xFF, count); res = gbfread(buf, 1, count, fin); -- 2.30.2